package com.yimi.yinhepda.db.table;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 叉车分货统计表
 *
 * @author 000432
 * @date 2018/8/20 0020
 */
@DatabaseTable(tableName = "ForkliftStatisticsTable")
public class ForkliftStatisticsTable {

    @DatabaseField(generatedId = true)
    private transient Long id;
    /**
     * 工号
     */
    @DatabaseField()
    private String workNo;
    /**
     * 部门编码
     */
    @DatabaseField()
    private String deptCode;
    /**
     * 托盘号
     */
    @DatabaseField()
    private String palletNo;
    /**
     * 运单号
     */
    @DatabaseField()
    private String waybillNo;
    /**
     * 货区
     */
    @DatabaseField()
    private String areaCode;
    /**
     * 下一站
     */
    @DatabaseField()
    private String nextCode;
    @DatabaseField()
    private String nextName;
    /**
     * 件数
     */
    @DatabaseField()
    private int jianNum;
    /**
     * 计费重量
     */
    @DatabaseField()
    private double chargedWeight;

    public ForkliftStatisticsTable() {
    }

    public ForkliftStatisticsTable(String workNo, String deptCode, String palletNo, String waybillNo, String areaCode, String nextCode,
                                   String nextName, int jianNum, double chargedWeight) {
        this.workNo = workNo;
        this.deptCode = deptCode;
        this.palletNo = palletNo;
        this.waybillNo = waybillNo;
        this.areaCode = areaCode;
        this.nextCode = nextCode;
        this.nextName = nextName;
        this.jianNum = jianNum;
        this.chargedWeight = chargedWeight;
    }

    public double getChargedWeight() {
        if (Double.isNaN(chargedWeight)) {
            return 0;
        }
        return chargedWeight;
    }

    public void setChargedWeight(double chargedWeight) {
        this.chargedWeight = chargedWeight;
    }

    public String getWorkNo() {
        return workNo;
    }

    public void setWorkNo(String workNo) {
        this.workNo = workNo;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getPalletNo() {
        return palletNo;
    }

    public void setPalletNo(String palletNo) {
        this.palletNo = palletNo;
    }

    public String getWaybillNo() {
        return waybillNo;
    }

    public void setWaybillNo(String waybillNo) {
        this.waybillNo = waybillNo;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getNextCode() {
        return nextCode;
    }

    public void setNextCode(String nextCode) {
        this.nextCode = nextCode;
    }

    public String getNextName() {
        return nextName;
    }

    public void setNextName(String nextName) {
        this.nextName = nextName;
    }

    public int getJianNum() {
        return jianNum;
    }

    public void setJianNum(int jianNum) {
        this.jianNum = jianNum;
    }
}
